home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / book / Chap06 / MATLIGHT / MATLIGHTDOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-22  |  1.5 KB  |  60 lines

  1. // matlightDoc.h : interface of the CMatlightDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #ifndef __MATDOC__
  5. #define __MATDOC__
  6.  
  7. class CMatlightDoc : public CDocument
  8. {
  9. protected: // create from serialization only
  10.     CMatlightDoc();
  11.     DECLARE_DYNCREATE(CMatlightDoc)
  12.  
  13. // Attributes
  14. public:
  15.     GLfloat fLight0Pos[4];        // Light Position
  16.     GLfloat fLight0Ambient[4];    // Lights Ambient Component
  17.     GLfloat fLight0Diffuse[4];    // Lights Diffuse Component
  18.     GLfloat fLight0Specular[4];    // Lights Secular Component
  19.     
  20.     GLfloat fMatAmbient[4];        // Materials Ambient reflectivity
  21.     GLfloat fMatDiffuse[4];        // Materials Diffuse reflectivity
  22.     GLfloat fMatSpecular[4];    // Materials Specular reflectivity
  23.     GLfloat fShine;                // Materials Shininess
  24.  
  25.     GLint   nAlphaList;            // Display list for letters
  26.  
  27. // Operations
  28. public:
  29.     void GLSetupRC(HDC hDC);
  30.  
  31. // Overrides
  32.     // ClassWizard generated virtual function overrides
  33.     //{{AFX_VIRTUAL(CMatlightDoc)
  34.     public:
  35.     virtual BOOL OnNewDocument();
  36.     virtual void Serialize(CArchive& ar);
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CMatlightDoc();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CMatlightDoc)
  52.     afx_msg void OnEditLight();
  53.     afx_msg void OnEditMaterial();
  54.     //}}AFX_MSG
  55.     DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. #endif
  60.